Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip metadata processing after sending local reply #16154

Merged
merged 3 commits into from
May 21, 2021

Conversation

GinYM
Copy link
Contributor

@GinYM GinYM commented Apr 23, 2021

Signed-off-by: Yiming Jin [email protected]

Commit Message: Skip metadata processing after sending local reply
Fixes #15654

@repokitteh-read-only
Copy link

Hi @GinYM, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #16154 was opened by GinYM.

see: more, trace.

@GinYM GinYM marked this pull request as ready for review April 25, 2021 05:12
Copy link
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add unit and also integration test if possible for this new case, please?

@yanavlasov
Copy link
Contributor

/wait

@yanavlasov yanavlasov self-assigned this Apr 27, 2021
@GinYM
Copy link
Contributor Author

GinYM commented Apr 28, 2021

Can you add unit and also integration test if possible for this new case, please?

Sure, will do that.

@GinYM GinYM force-pushed the early-stop branch 2 times, most recently from b5085b1 to 9846ad2 Compare May 4, 2021 06:55
codec_client_ = makeHttpConnection(lookupPort("http"));
// Send a headers only request.
IntegrationStreamDecoderPtr response;
EXPECT_ENVOY_BUG(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test is the same as the DownstreamProtocolIntegrationTest.ContinueAfterLocalReply and it does not test the change you have made. To test you change the decodeHeaders() of your test filer should return StopAll and then the decodeMetadata() should just have ASSERT(false); in it. I think the exception should work too, but it would be harder to diagnose than ASSERT.
And the test should just test for response from local reply. If it hits the ASSERT in the decodeMetadata then it would fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for review. Your are right, I have added StopIteration in decoderHeaders and removed the EXPECT_ENVOY_BUG. Aslo replace throw with assert.

@yanavlasov
Copy link
Contributor

/wait

@GinYM
Copy link
Contributor Author

GinYM commented May 9, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16154 (comment) was created by @GinYM.

see: more, trace.

yanavlasov
yanavlasov previously approved these changes May 14, 2021
@yanavlasov
Copy link
Contributor

LGTM, you will need to resolve merge conflict before I can merge.

@yanavlasov
Copy link
Contributor

/wait

@GinYM
Copy link
Contributor Author

GinYM commented May 15, 2021

LGTM, you will need to resolve merge conflict before I can merge.

Done.

@GinYM
Copy link
Contributor Author

GinYM commented May 15, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16154 (comment) was created by @GinYM.

see: more, trace.

@GinYM
Copy link
Contributor Author

GinYM commented May 16, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16154 (comment) was created by @GinYM.

see: more, trace.

@antoniovicente antoniovicente removed their assignment May 18, 2021
@yanavlasov yanavlasov merged commit 5c28e95 into envoyproxy:main May 21, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip unnecssary work after sending a local reply.
3 participants